#!/bin/bash

CATAPULT_MODEL=$1

CATAPULT_DIR=../catapult_$CATAPULT_MODEL


if [ "$CATAPULT_MODEL" == "" ]; then
  echo "usage: ./build_catapult.sh <model>"
  exit
fi

if [ ! -d $CATAPULT_DIR ]; then
  echo "catapult directory does not exist corresponding to the specific model."
  echo "  - catapult_dir: $CATAPULT_DIR"
  exit
fi

cd $CATAPULT_DIR
../../bin/compile.sh -ode catapult.cpp

cd -

